/*******************************************************************************
 * The MOSES project, model based software engineering of networked embedded systems.
 * 
 * Copyright (C) 2010-2013, University of Applied Sciences Wildau,
 * Telematics Research Group, http://www.tm.th-wildau.de/research-group
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see <http://www.gnu.org/licenses>.
 * 
 * Contributors:
 *     University of Applied Sciences Wildau - initial API and implementation
 * 
 * If you are interested in a commercial license please contact us via 
 * e-mail: ralf.vandenhouten@th-wildau.de.
 ******************************************************************************/
package de.thwildau.tm.moses.avro.ui.builder;

import java.io.File;

import org.eclipse.core.runtime.CoreException;

/**
 * A Compiler task for Avro input files. Depending on the given input file, the Compiler
 * task can various implementations.
 *
 * @author Thomas Kistel
 * @version $Revision: 766 $
 *
 */
public interface AvroCompilerTask {

    /**
     * Runs the compilation on the given <code>src</code> file and produces the
     * output to the <code>destDir</code> directory.
     * 
     * @param src the src file which should be compiled
     * @param destDir the destination directory
     * @throws CoreException
     *              - IStatus Error: There occurred a serious error. The compilation need to aborted
     *              - IStatus Warning: An error occurred, but that has no effects on the rest of the compilation task 
     */
    public void doCompile(File src, File destDir) throws CoreException;

}
